<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="pojo.*,dao.*,service.*"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%request.setCharacterEncoding("utf-8"); %>
<jsp:useBean id="user" class="pojo.Customer" scope="session"/>
<jsp:setProperty name="user" property="*"/>
<%
CustomerService cservice=new CustomerService();
Customer cu=cservice.check_login(user);
if(cu!=null){
	session.setAttribute("user",cu);
	response.sendRedirect("showCustomer.jsp");
}else{
	out.print("登陆失败");
}
%>
</body>
</html>